const router = require("koa-router")({ prefix: "/api" });
const uploadFile = require("../controller/uploadFile");

router.post("/uploadFile", async(req) => { 
    try {
        const data = req.request.body
        console.log(data, '前端参数')
        // const res = await uploadFile(data)
        req.response.body = data
    } catch (error) {
        req.response.body = error
    }
})

module.exports = router